package com.htgd.gardenexpo.page;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

@Data
public class CouponQuery extends PageBase{

    @ApiModelProperty(value = "优惠券名称")
    private String name;

    @ApiModelProperty(value = "优惠券类型（1抵扣券）")
    private Integer type;

    @ApiModelProperty(value = "类型名称")
    private String typeName;

    @ApiModelProperty(value = "面额")
    private BigDecimal amount;

    @ApiModelProperty(value = "使用条件类型（0无条件，1满减）")
    private Integer conditionType;

    @ApiModelProperty(value = "满xx可用")
    private BigDecimal reductionAmount;

    @ApiModelProperty(value = "最低消费")
    private BigDecimal minCost;

    @ApiModelProperty(value = "发行量")
    private Integer circulation;

    @ApiModelProperty(value = "限领")
    private Integer limit;

    @ApiModelProperty(value = "有效期类型（1长期，2多少天后，3固定时间）")
    private Integer validityType;

    @ApiModelProperty(value = "固定天数")
    private Integer fixedDays;

    @ApiModelProperty(value = "固定日期")
    private LocalDate fixedTime;

    @ApiModelProperty(value = "开始时间")
    private LocalDateTime startTime;

    @ApiModelProperty(value = "结束时间")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "类目id")
    private Integer categoryId;

    @ApiModelProperty(value = "类目名称")
    private String categoryName;

    @ApiModelProperty(value = "说明")
    private String description;

    @ApiModelProperty(value = "状态（1生效，2结束，0待激活）")
    private String status;

}
